﻿namespace WLFramework.Web.Binder
{
    using System.Collections.Generic;
    using WLFramework.Reflection.Metadata;
    using WLFramework.Web.Binder.ValueProvider;

    public class ModelState
    {
        public List<ModelException> Errors { get; private set; }
        public ValueProviderResult Value { get; set; }
        public ModelMemberInfo MemberInfo { get; set; }

        public ModelState(ValueProviderResult value = null)
        {
            this.Errors = new List<ModelException>();
            this.Value = value;
        }
    }
}
